package com.googlecode.exitrule.ui.table;

import org.joda.time.LocalDate;

public class DetailTableData {
	// input fields
	private LocalDate buyDate;
	private String stockName;
	private double buyPrice;
	private int analysisPeriod;

	// calculated fields
	private double maxPrice;
	private double priceDeviation;
	private double exitPrice;

	public DetailTableData(LocalDate buyDate, String stockName,
			double buyPrice, int analysisPeriod) {
		super();
		this.buyDate = buyDate;
		this.stockName = stockName;
		this.buyPrice = buyPrice;
		this.analysisPeriod = analysisPeriod;
	}

	public String getStockName() {
		return stockName;
	}

	public LocalDate getBuyDate() {
		return buyDate;
	}

	public double getBuyPrice() {
		return buyPrice;
	}

	public int getAnalysisPeriod() {
		return analysisPeriod;
	}

	public double getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(double maxPrice) {
		this.maxPrice = maxPrice;
	}

	public double getPriceDeviation() {
		return priceDeviation;
	}

	public void setPriceDeviation(double priceDeviation) {
		this.priceDeviation = priceDeviation;
	}

	public double getExitPrice() {
		return exitPrice;
	}

	public void setExitPrice(double exitPrice) {
		this.exitPrice = exitPrice;
	}
}
